package com.sharemarking.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface FaceHandlerMapper {
	
	/**
	 * 更新用户表的实人认证状态
	 * @param memberid
	 * @param state
	 */
	@Update("UPDATE eu_member SET is_real_verified=#{state},real_name = #{realName} WHERE id=#{memberid}")
	void updateEuMemberById(@Param("realName")String realName, @Param("memberid")Integer memberid, @Param("state")int state);
	
	/**
	 * 通过用户id，更新认证结果，状态
	 * @param id
	 * @param rejectReason
	 */
	@Update("UPDATE eu_real_person_verification SET state = #{state},reject_reason = '图片不规范',ai_result =#{rejectreason} WHERE id= #{id} ")
	void updateRejectRessonById(@Param("id") Integer id,@Param("state") Integer state,@Param("rejectreason") String rejectreason);
}













